.PHONY:all
all:hello generic

hello:hello.cpp
	g++ $^ -std=c++17 -o $@  -L /usr/lib/x86_64-linux-gnu/ -lhiredis  -L /usr/local/lib/ -lredis++ -lpthread
	#g++ -std=c++17 -o $@ $^ /usr/lib/x86_64-linux-gnu/libhiredis.a  /usr/local/include/sw/redis++/redis++.h -pthread

generic:generic.cpp
	g++ $^ -std=c++17 -o $@  -L /usr/lib/x86_64-linux-gnu/ -lhiredis  -L /usr/local/lib/ -lredis++ -lpthread
	#g++ -std=c++17 -o $@ $^ /usr/lib/x86_64-linux-gnu/libhiredis.a  /usr/local/include/sw/redis++/redis++.h -pthread

.PHONY:clean
clean:
	rm hello
	rm generic
